#include <stdint.h>
struct WavHeader
{
	unsigned char chunkId[4];
	int32_t chunkSize;
	unsigned char format[4];
	unsigned char subchunk1Id[4];
	int32_t subchunk1Size;
	int16_t audioFormat;
	int16_t numChannels;
	int32_t sampleRate;
	int32_t byteRate;
	int16_t blockAlign;
	int16_t bitsPerSample;
	unsigned char subchunk2Id[4];
	int32_t subchunk2Size;


};
class Wav
{
	WavHeader header;
	unsigned char *data;
	long length;
public:

	Wav();
	WavHeader getHeader();
	void setHeader(WavHeader newHeader);
	unsigned char* getData();
	void setData(unsigned char *newData);
	void readWav(char* fileName);
	void writeWav(char* fileName);
	void toConsole();
	void setLength(long len);
	long getLength();
};
